package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentCell = "online_student_cell"

func init() {
	var r = &OnlineStudentCell{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentCell struct {
	StudentCellId int    `json:"studentCellId" form:"studentCellId" column:"student_cell_id" primary:"true" modify:"false"`
	StudentId     int    `json:"studentId" form:"studentId" column:"student_id" modify:"true"`
	TeacherId     int    `json:"teacherId" form:"teacherId" column:"teacher_id" modify:"true"`
	ClassId       int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	CourseId      int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	TermId        int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	NodeId        int    `json:"nodeId" form:"nodeId" column:"node_id" modify:"true"`
	BranchId      int    `json:"branchId" form:"branchId" column:"branch_id" modify:"true"`
	CellId        int    `json:"cellId" form:"cellId" column:"cell_id" modify:"true"`
	IsKnowledge   int    `form:"isKnowledge" column:"is_knowledge" modify:"true" json:"isKnowledge"`
	IsSupply      int    `json:"isSupply" form:"isSupply" column:"is_supply" modify:"true"`
	QuestionId    int    `form:"questionId" column:"question_id" modify:"true" json:"questionId"`
	Answer        string `json:"answer" form:"answer" column:"answer" modify:"true"`
	IsRight       int    `column:"is_right" modify:"true" json:"isRight" form:"isRight"`
	IsTimeout     int    `json:"isTimeout" form:"isTimeout" column:"is_timeout" modify:"true"`
	TimeUsed      int    `json:"timeUsed" form:"timeUsed" column:"time_used" modify:"true"`
	Score         int    `json:"score" form:"score" column:"score" modify:"true"`
	TotalUsed     int    `json:"totalUsed" form:"totalUsed" column:"total_used" modify:"true"`
	StartTime     string `json:"startTime" form:"startTime" column:"start_time" modify:"true"`
	EndTime       string `json:"endTime" form:"endTime" column:"end_time" modify:"true"`
	CreateTime    string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime    string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineStudentCell) Name() string {
	return RecordNameOnlineStudentCell
}
